<form name = "frm_editctnhap" method = "post" action = "">
<table width = "400" cellpadding = "2" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">
<tr> <th colspan = "2" class = "list"> CẬP NHẬT CHI TIẾT NHẬP </th> </tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "right"> Nhà cung cấp </div> </td>
	<td width = "200" valign = "top" align = "left">
	<select name = "cmb_hang">
			<?php	
				if($data['listh']){
					foreach ($data['listh'] as $item){?>
					<option value="<?php echo $item['MaNCC'];?>" 
					<?php
						if($data['MaNCC'] == $item['MaNCC']){
							echo 'selected';
						}
					?>>
					<?php echo $item['TenNCC'];?>
					</option>
			<?php 		
					}
				}
			?>
			</select>
	</td>
</tr>

<tr> 
	<td width = "200" valign = "top"> <div align = "right"> Mặt hàng </div> </td>
	<td width = "200" valign = "top" align = "left">
		<select name = "cmb_mathang">
				<?php
					if($data['listmh']){ 
						foreach ($data['listmh'] as $item){
					?>
					<option value="<?php $item['MaMH'];?>" 
					<?php if($data['MaMH'] == $item['MaMH']){
						echo 'selected';
						}?>>
					<?php echo $item['TenMH'];?>
					</option>
					<?php
						}
					}
				?>
	</select>
	</td>
</tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "right"> Đơn giá nhập </div> </td>
	<td width = "200" valign = "top">
		<input name = "dongia" type = "text" value = "<?php echo $data['DonGiaNhap'];?>"/> </td>
</tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "right">Số lượng nhập</div> </td>
	<td width = "200" valign = "top">
		<input name = "soluong" type = "text" value = "<?php echo $data['SoLuongNhap'];?>"/> </td>
</tr>
<tr> 
	<td width = "200" valign = "top"> <div align = "right">Ngày nhập</div> </td>
	<td width = "200" valign = "top">
		<input name = "ngaynhap" type = "text" value = "<?php echo $data['NgayNhap'];?>"/> </td>
</tr>
<tr>
	<td width = "400" valign = "top" colspan = "2"> <div> <input name = "btok" type = "submit" value = "Cập nhật"/> </div> </td>
</tr>
</table>
</form>